#! /bin/env python3
# coding: utf-8

import os

import yaml


def load_cfg(dict_name):
    current_path = os.path.dirname(os.path.realpath(__file__))
    conf_path = os.path.join(current_path, r'../conf/config.yaml')
    cfg = open(conf_path, 'r', encoding='utf-8')
    return yaml.load(cfg, Loader=yaml.FullLoader)[dict_name]
